package com.pinc.poop;

import com.pinc.poop.R;

import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class about extends PwdWidgetActivity{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		initWidget();
	}

	@Override
	protected void initWidget() {

		TextView tv_left = (TextView) this.findViewById(R.id.button_left);
		tv_left.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});

		TextView tv_right = (TextView) this.findViewById(R.id.button_right);
		tv_right.setVisibility(View.INVISIBLE);

		TextView tv_title = (TextView) this.findViewById(R.id.textView_title);
		tv_title.setText(getResources().getString(R.string.str_about));

		TextView tv_ver = (TextView) this.findViewById(R.id.textView_ver);
		try {
			tv_ver.setText(getPackageManager().getPackageInfo(getPackageName(), 0).versionName);
		} catch (NameNotFoundException e) {
			e.printStackTrace();
		}
	}

}
